<%
layout("../layouts/layout.html",{perMark:"sm/sm_org"}) {
%>
<section class="content page-content">
  <div  id="smOrgSection" class="row">
    <div class="col-md-4">
      <div class="box box-primary" >
        <div class="box-header with-border" >
          <div class="row">
            <div class="col-md-12">
              <div class="btn-group table-toolbar">
                <a id="new_order" class="btn btn-default" data-toggle="modal" data-target="#orgDialog">
                  新增 <i class="fa fa-plus"></i>
                </a>
                <a id="edit_order" class="btn btn-default">
                  修改 <i class="fa fa-edit"></i>
                </a>

                <% if (session.userType == 1) { %>
                <a id="del_order" class="btn btn-default">
                  删除 <i class="fa fa-trash-o"></i>
                </a>

                <div class="btn-group">
                  <a id="enable_order" type="button" class="btn btn-default"> 启用 <i
                          class="fa fa-check-circle-o"></i></a>
                  <a type="button" class="btn btn-default dropdown-toggle"
                     data-toggle="dropdown"><i class="fa fa-angle-down"></i></a>
                  <ul class="dropdown-menu" role="menu">
                    <li>
                      <a id="disable_order">
                        禁用 <i class="fa fa-ban"></i></a>
                    </li>
                  </ul>
                </div>
                <%}%>
              </div>
            </div>
          </div>
          <div class="title-caption">
            <i class="fa fa-cogs"></i>组织结构
          </div>
          <div class="title-tools">
            <a id="org_tree_reload_order" href="javascript:;"><i class="fa fa-refresh"></i></a>
          </div>
        </div>
        <div class="box box-body">
          <div class="scroller portlet-body-scroller" style="height:451px">
            <div id="orgTree">
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="col-md-8">
      <div class="box box-primary" >
        <div class="box-header with-border" >
          <div class="title-caption">
            <i class="fa fa-cogs"></i>组织信息
          </div>
          <div class="title-tools">
            <a id="org_detail_reload_order" href="javascript:;"><i class="fa fa-refresh"></i></a>
          </div>
        </div>
        <div class="box box-body">
          <div class="scroller portlet-body-scroller" style="min-height:500px;">
            <div class="center-block">
              <form action="">
                <div class="form-body">
                  <div class="form-group">
                    <label class="control-label">组织编码：</label>
                    <input type="text" id="dispCode" name="dispCode" class="form-control" readonly="true" />
                  </div>
                  <div class="form-group">
                    <label class="control-label">组织名称：</label>
                    <input type="text" id="dispName" name="dispName" class="form-control" readonly="true" />
                  </div>
                  <div class="form-group">
                    <label class="control-label">组织信息：</label>
                    <textarea type="text" id="dispInfo" name="dispInfo" style="max-width:100%;" rows="3" class="form-control" readonly="true" ></textarea>
                  </div>
                  <div class="form-group">
                    <label class="control-label ">状态：</label>
                    <input type="text" id="dispStatus" name="dispStatus" class="form-control" readonly="true" />
                  </div>
                  <div class="form-group">
                    <label class="control-label">备注：</label>
                    <textarea type="text" id="dispMemo" name="dispMemo" style="max-width:100%" rows="3" class="form-control" readonly="true" ></textarea>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<%}%>